package com.idroc.coelacanth.core.membership;

/**
 * 端点的元数据
 * @author yuyoo (yuyoo4j@163.com)
 * @date 2009-12-2 上午11:57:55
 */
public class EndpointMeta {
	
	/**
	 * 端点联系位置
	 */
	public Endpoint endpoint = null;
	
	/**
	 * 端点的心跳
	 */
	public HeartBeatState heartbeatState = null;
	
	/**
	 * 端点的节点状态
	 */
	public MemberState memberState = null;
	
	@Override
	public String toString() {
		
		StringBuilder sb = new StringBuilder();
		sb.append("EndpointMeta[");
		sb.append("endpoint:{").append(endpoint.toString()).append("},");
		sb.append("heartbeatState:{").append(heartbeatState.toString()).append("},");
		sb.append("memberState:{").append(memberState.toString()).append("}");
		sb.append("]");
		return sb.toString();
	}
}
